//
//  JuSwiftLib.swift
//  JuSwiftLib
//
//  Created by Juvid on 2018/5/10.
//  Copyright © 2018年 Juvid. All rights reserved.
//
import UIKit
open class JuSwiftLib: NSObject {

    private  var ju_private :NSString?
    fileprivate  var ju_fileprivate : NSString?
    open  var ju_open : NSString?
    internal  var ju_internal : NSString?
    public  var ju_public : NSString?

    required  public  init(name : String) {
        super.init()
        NSLog("父类")
    }

    convenience  init(age : String) {
        self.init(name: "123456")
    }

    private   func juPrivate()  {
        NSLog("%@", ju_private ?? "");
    }
    fileprivate   func juFileprivate()  {
        NSLog("%@", ju_fileprivate ?? "")
    }
    open  func juOpen()  {
        let juOpne = JuOpneClass.init()
        print(juOpne[3,2])
        NSLog("%@", ju_open ?? "")
    }
    internal  func juInternal()  {
        NSLog("%@", ju_internal ?? "")
    }
    public  func juPublic()  {
        NSLog("%@", ju_public ?? "")
    }
    func juDefault()  {
        NSLog("默认值")
    }

    open  var black: NSString {
        get{
            return "类变量"
        }
    }
}
private class juPrivateClass: NSObject{

}
class JuTestClass: NSObject {
    var ju_more = JuSwiftLib.init(name: "hhh")
    func juTest(name:NSString)  {
        let ju_privateCls = juPrivateClass.init();
        ju_more.ju_fileprivate = "fileprivate"
       
        ju_more.ju_internal = "internal"
        ju_more.ju_open = "open"
        ju_more.ju_public = "public"
    }

}

